﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CarLoanSystem.Entity;

namespace CarLoanSystem.Web.Comman
{
    public class CurrentUser
    {
        public static Entity.CustomerItem CurrentUserInfo()
        {
            if (HttpContext.Current.Session["userinfo"] != null)
            {
                //Entity.UserItem item = DAL.UserInfoDAL.Load(HttpContext.Current.Session["userinfo"].ToString());
                return new Entity.CustomerItem();
            }
            else
            {
                return null;
            }
        }
    }
}